local Emit = Sound("Weapon_RPG.Single")

local function Turret(Player, Entity, Victim, Position, Ang)
	local Rocket = ents.Create("gmod_perimeterturret_rocket")
	
	Rocket:SetPos(Position + (Ang * 25))
	Rocket:SetAngles(Ang)
	Rocket:SetPlayer(Player)
	
	Rocket.Direction = Ang
	Rocket.Force  = Entity:GetEntityRadius()
	Rocket.Damage = 30
	
	Rocket:Spawn()
	
	Entity:EmitSound(Emit)
	
	return 2
end

PerimeterTurret.Add("Rocket", Turret)